// com.lesso.cyg.sunflower.infra.assembler.EmployeeAttendanceRuleRelAssembler.java
package com.lesso.cyg.sunflower.infra.assembler;

import com.lesso.cyg.sunflower.model.EmployeeAttendanceRuleRel;
import com.lesso.cyg.sunflower.pojo.dto.EmployeeAttendanceRuleRelDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 员工考勤规则关系装配器
 */
@Mapper
public interface EmployeeAttendanceRuleRelAssembler {
    EmployeeAttendanceRuleRelAssembler INSTANCE = Mappers.getMapper(EmployeeAttendanceRuleRelAssembler.class);

    // 实体与DTO互转
    EmployeeAttendanceRuleRel dtoToEntity(EmployeeAttendanceRuleRelDTO dto);
    EmployeeAttendanceRuleRelDTO entityToDto(EmployeeAttendanceRuleRel entity);

    // 集合转换
    List<EmployeeAttendanceRuleRelDTO> entityListToDtoList(List<EmployeeAttendanceRuleRel> entityList);
    List<EmployeeAttendanceRuleRel> dtoListToEntityList(List<EmployeeAttendanceRuleRelDTO> dtoList);
}